
openssl genrsa -out heron.key -des 2048

openssl req -new -key heron.key -x509 -days 365 -out heron.crt -config openssl.cfg
   
keytool -genkeypair -alias myalias -keysize 1024 -keystore m.jks -storepass password -keypass password
   
keytool -certreq -alias myalias -keypass password -keystore m.jks -storepass password -file m.csr
   
openssl x509 -req -in m.csr -CA heron.crt -CAkey heron.key -out m.crt -days 365 -CAcreateserial -CAserial heron.seq
   
keytool -importcert -alias h_crt -keypass password -file heron.crt -keystore m.jks -storepass password








keytool -genkeypair -alias Joe -keysize 1024 -keystore Joe.jks -storepass password -keypass password
   
keytool -certreq -alias Joe -keypass password -keystore Joe.jks -storepass password -file Joe.csr
   
openssl x509 -req -in Joe.csr -CA server.crt -CAkey server.key -out Joe.crt -days 365 -CAcreateserial -CAserial server8.seq
   
keytool -importcert -alias h_crt -keypass password -file server.crt -keystore Joe.jks -storepass password

keytool -importcert -alias Joe -keypass password -file Joe.crt -keystore Joe.jks -storepass password


